import {defineStore} from "pinia";
import {ref} from "vue";

export const useIndexListModelStore = defineStore('indexModel', () => {
        // false-图文 true-纯图片
        const graphicModel = ref(false)
        const showChangeBtn = ref(true)
        return {
            graphicModel,
            showChangeBtn
        }
    },
    {
        persist: {
            storage: {
                setItem(key, value) {
                    uni.setStorageSync(key, value)
                },
                getItem(key) {
                    return uni.getStorageSync(key)
                },
            },
        },
    }
)